/**
 * StockorderService.java
 * Copyright (C) 2013 Gank
 * Simple Currency Trade System
 * 
 */
package com.gank.ct.service;

import java.util.List;

import com.gank.ct.dao.IStockorderDao;
import com.gank.ct.domain.Stockorder;

/**
 * Copyright (C) 2013:Gank<br/>
 * Project:Curreny Trade<br/>
 * Module ID:<br/>
 * Comments:Simple Currency Trade System<br/>
 * JDK version used:JDK1.6<br/>
 * Package:com.gank.ct.service<br/>
 * Author:Michael Wu<br/>
 * Create Date:2013-11-7<br/>
 * Modified By:<br/>
 * Modified Date:<br/>
 * Why & What is modified:<br/>
 * Version:0.1<br/>
 */
public class StockorderService implements IStockorderService {
	// 订货单持久化处理接口
	private IStockorderDao stockorderDao;

	/*
	 * 订货单查询
	 * 
	 * @see
	 * com.zds.slms.service.IStockorderService#findStockorder(com.zds.slms.domain
	 * .Stockorder )
	 */
	public List<Stockorder> findStockorder(Stockorder stockorder) {
		return stockorderDao.findStockorder(stockorder);
	}

	/*
	 * 订货单保存
	 * 
	 * @see
	 * com.zds.slms.service.IStockorderService#saveStockorder(com.zds.slms.domain
	 * .Stockorder )
	 */
	public void saveStockorder(Stockorder stockorder) {
		stockorderDao.saveStockorder(stockorder);

	}

	/*
	 * 订货单删除
	 * 
	 * @see
	 * com.zds.slms.service.IStockorderService#deleteStockorder(java.lang.String
	 * [])
	 */
	public void deleteStockorder(String[] stockorderId) {
		stockorderDao.deleteStockorder(stockorderId);

	}

	/*
	 * 订货单更新
	 * 
	 * @see
	 * com.zds.slms.service.IStockorderService#updateStockorder(com.zds.slms
	 * .domain. Stockorder)
	 */
	public void updateStockorder(Stockorder stockorder) {
		stockorderDao.updateStockorder(stockorder);

	}

	/**
	 * @return the stockorderDao
	 */
	public IStockorderDao getStockorderDao() {
		return stockorderDao;
	}

	/**
	 * @param stockorderDao
	 *            the stockorderDao to set
	 */
	public void setStockorderDao(IStockorderDao stockorderDao) {
		this.stockorderDao = stockorderDao;
	}

}
